/*  1:   */ package org.intellij.plugins.relaxNG.xml.dom.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.icons.AllIcons.Nodes;
import com.intellij.util.IncorrectOperationException;
import com.intellij.util.xml.DomMetaData;
import com.intellij.util.xml.GenericAttributeValue;
import com.intellij.util.xml.GenericDomValue;
import org.intellij.plugins.relaxNG.xml.dom.RngDefine;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ public class RngDefineMetaData
/* 13:   */   extends DomMetaData<RngDefine>
/* 14:   */ {
/* 15:   */   @Nullable
/* 16:   */   protected GenericDomValue getNameElement(RngDefine paramRngDefine)
/* 17:   */   {
/* 18:38 */     GenericAttributeValue localGenericAttributeValue = paramRngDefine.getNameAttr();
/* 19:39 */     if (localGenericAttributeValue.getXmlElement() != null) {
/* 20:40 */       return localGenericAttributeValue;
/* 21:   */     }
/* 22:42 */     return null;
/* 23:   */   }
/* 24:   */   
/* 25:   */   public void setName(String paramString)
/* 26:   */     throws IncorrectOperationException
/* 27:   */   {
/* 28:46 */     ((RngDefine)getElement()).setName(paramString);
/* 29:   */   }
/* 30:   */   
/* 31:   */   public Icon getIcon()
/* 32:   */   {
/* 33:50 */     return AllIcons.Nodes.Property;
/* 34:   */   }
/* 35:   */   
/* 36:   */   public String getTypeName()
/* 37:   */   {
/* 38:54 */     return "Pattern Definition";
/* 39:   */   }
/* 40:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.xml.dom.impl.RngDefineMetaData

 * JD-Core Version:    0.7.0.1

 */